adTempus API
PreviousUpNext
IScheduler::TimeAdjustment Property

Gets the difference (in seconds) between the clocks on the client and server.

C++
__property long* TimeAdjustment;
C#
long* TimeAdjustment;
Visual Basic
Property TimeAdjustment() As long*

The TimeAdjustment provides an estimate of the degree to which the clocks on the client and server are out of synch. The TimeAdjustment is calculated when the connection is first established. If the clock on either computer has changed since then, or is drifting at a different rate than the other, this estimate will no longer be valid. 

The TimeAdjustment is calculated after converting both times to UTC, so it expresses the degree of error only. The adjustment is calculated as: 

(time on the server, converted to UTC) - (time on the client, converted to UTC) 

So, if the time on the server is 15 December 2002 12:03:02 PM EST and the time on the client is 15 December 2002 11:02:38 AM EST, the TimeAdjustment is 24 seconds. 

 

adTempus API Reference version 3.0.0.0, revised 10/30/2008